import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory('./'),
  routes: [
    {
      path: '/',
      redirect: '/Home',
    },
    {
      path: '/Home',
      name: 'home',
      component: () => import('@/views/Home.vue'),
    },
    {
      path: '/TestTube',
      name: 'TestTube',
      component: () => import('@/views/TestTube.vue'),
    },
    {
      path: '/OpenDoor',
      name: 'OpenDoor',
      component: () => import('@/views/OpenDoor.vue'),
    },
    {
      path: '/TestView',
      name: 'TestView',
      component: () => import('@/views/TestView.vue'),
    },
    {
      path: '/Setting',
      name: 'Setting',
      component: () => import('@/views/Setting.vue'),
    },
    {
      path: '/SetItem',
      name: 'SetItem',
      component: () => import('@/views/SetItem.vue'),
    },
    {
      path: '/DataBase',
      name: 'DataBase',
      component: () => import('@/views/DataBase.vue'),
    },
    {
      path: '/DBInfo',
      name: 'DBInfo',
      component: () => import('@/views/DBInfo.vue'),
    },
    {
      path: '/AboutDevice',
      name: 'AboutDevice',
      component: () => import('@/views/AboutDevice.vue'),
    },
    {
      path: '/User',
      name: 'User',
      component: () => import('@/views/User.vue'),
    },
    {
      path: '/WhiteList',
      name: 'WhiteList',
      component: () => import('@/views/WhiteList.vue'),
    },
    {
      path: '/Records',
      name: 'Records',
      component: () => import('@/views/Records.vue'),
    },
    {
      path: '/Test',
      name: 'Test',
      component: () => import('@/views/Test.vue'),
    },
  ],
})

export default router
